<table cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th width="45"></th>
      <th width="155">商品</th>
      <th>商品名称</th>
      <th>数量</th>
      <th>价格</th>
      <th>库存</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    {foreach $list as $k=>$v}
    <tr>
      <td width="45"><!-- <em class="cart-chk"></em> --></td>
      <td width="155"><div class="pic"><a href='{AnUrl("goods/{$v.goods_id}")}' target="_blank"><img src="{_image($v.goods_cover)}"></a></div></td>
      <td><h4 class="title"><a href='{AnUrl("goods/{$v.goods_id}")}' target="_blank">{$v.goods_title}</a></h4></td>
      <td>
        <div class="cart-nums clearfix">
          <em class="left js_skuNumReduce">-</em>
          <input type="text" class="left js_skuNum js_cartSkuNum" value="{$v.goods_num}" goods-id-data="{$v.goods_id}" sku-id-data="{$v.sku_id}" stock-data="{$v.stock}">
          <em class="left js_skuNumAdd">+</em>
        </div>
      </td>
      <td><p>￥{$v.goods_price|number_format:2}</p></td>
      <td class="js_cartStock">{if $v.stock-$v.goods_num >= 0}有货{else}无货{/if}</td>
      <td>
        <p><a href="javascript:void(0);" class="js_cartToFav">移至最爱</a></p>
        <p><a href="javascript:void(0);" class="js_cartDelete">删除商品</a></p>
      </td>
    </tr>
    {/foreach}
  </tbody>
</table>